package org.jeecg.modules.ws.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 网银直连配置类
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "wyzl")
public class WyzlConfig {
    /**
     * 外联平台主机地址
     */
    private String host = "localhost";
    
    /**
     * 外联平台端口
     */
    private int port = 12345;
    
    /**
     * 通讯方式(http/socket)
     */
    private String communicationType = "http";
    
    /**
     * 加密类型
     */
    private String encryptType = "SMFace";
    
    /**
     * 客户号
     */
    private String custId;
    
    /**
     * 操作员号
     */
    private String userId;
    
    /**
     * 密码
     */
    private String password;
    
    /**
     * 语言
     */
    private String language = "CN";
    
    /**
     * 连接超时时间(毫秒)
     */
    private int connectTimeout = 30000;
    
    /**
     * 读取超时时间(毫秒)
     */
    private int readTimeout = 30000;
    
    /**
     * 最大重试次数
     */
    private int maxRetries = 3;
    
    /**
     * 重试间隔(毫秒)
     */
    private int retryInterval = 1000;
} 